package com.wp.design.create.prototype;

import java.text.MessageFormat;

public class MailUtil {
	public static void send(Mail mail){
		String sendContext = "向{0}同学，邮件地址{1}发送邮件内容{2}成功";
		System.out.println(MessageFormat.format(sendContext,mail.getName(),mail.getEmailAddress(),mail.getContent()));
	}
	public static void saveOrigileMail(Mail mail){
		System.out.println("存储原始邮件内容:"+mail.getContent());
	}
}
